# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor:
# Maintainer:
pkgname=libguess
pkgver=1.2
pkgrel=1
pkgdesc="extremely fast character set guessing library"
url="https://github.com/kaniini/libguess"
arch="all"
options="!check"  # Test suite requires package to be installed first
license="ISC"
makedepends="libmowgli-dev autoconf"
subpackages="$pkgname-dev"
source="http://rabbit.dereferenced.org/~nenolod/distfiles/libguess-$pkgver.tar.bz2"

prepare() {
	update_config_sub
	default_prepare
	autoconf
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="a17269e42e12b81e0201a27e41d9e290ac7351000473ddfcb968d5fc6e09cb5753d0534277ec257d43224cb675c8d563849853ab68ab6079a35480d6c40fb053  libguess-1.2.tar.bz2"
